'use strict';

var commonModels = angular.module('commonModels');

commonModels.factory('SubscriptionOpt', ['$resource', 'Constant', function($resource, Constant){
    return $resource(Constant.ApiPath + 'subOpt/:action', {}, {
        opt: {method:'GET', params:{action: true}}
    });
}]);
commonModels.factory('Subscription', ['$resource', 'Constant', function($resource, Constant){
    return $resource(Constant.ApiPath + 'subscription/:subId', {subId:'@id'}, {
        query: {method:'GET', isArray:false}
    });
}]);

